﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PortalWeb.Core.Entity;
using PortalWeb.Core.IDao;
using PortalWeb.DapperDao.Base;

namespace PortalWeb.DapperDao
{
    public partial class FunctionStore : BaseRepository<Function>, IFunctionStore
    {
        public Task<IEnumerable<Function>> GetFunctionsByRolesAsync(string roles)
        {
           return base.FindAsync(p => p.RolesString.Contains(roles));
        }
    }
}
